﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dos.Model;

public partial class webmx_program_banner_List : PageBase
{
    public DataTable source;
    protected void Page_Load(object sender, EventArgs e)
    {
        source = DB.Context.From<temple_Contents>()
            .Select(s => new { s.ID, s.Title, s.Depict, s.Photo, s.Attachment, s.CategoryID, s.SortID, s.AddTime, s.IsDel })
            .Where(w => w.CategoryID == 2 && w.IsDel == false)
            .OrderBy(od => od.SortID)
            .ToDataTable();
    }
}